export let publicmobileflag = "";
export let browserflag = "";
function phoneflag() {
  let userAgent = navigator.userAgent;
  publicmobileflag = !!userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
    ? "isIOS"
    : "isAndroid";

  const ua = navigator.userAgent.toLowerCase();
  if (ua.includes("alipayclient") || ua.includes("alipay")) {
    browserflag = "ali";
  } else if (ua.includes("micromessenger")) {
    browserflag = "wx";
  } else {
    browserflag = "other";
  }
}
phoneflag();
